mvebu: cp110: introduce COMPHY porting layer
authorGrzegorz Jaszczyk <jaz@semihalf.com>
Fri, 29 Jun 2018 16:00:33 +0000 (18:00 +0200)
committerKonstantin Porotchkin <kostap@marvell.com>
Thu, 18 Oct 2018 09:13:11 +0000 (12:13 +0300)
commit42a293379e808f2300519db937c6dc9a7685a4b2
tree10f5b6071f115ae4096e382eb33ae0244f4c7379
parent2b2c3f0a228a414b7965c3146d0459023d626660
mvebu: cp110: introduce COMPHY porting layer

Some of COMPHY parameters depends on the hw connection between the SoC
and the PHY, which can vary on different boards e.g. due to different
wires length. Define the "porting layer" with some defaults
parameters. It ease updating static values which needs to be updated due
to board differences, which are now grouped in one place.

Example porting layer for a8k-db is under:
plat/marvell/a8k/a80x0/board/phy-porting-layer.h

If for some boards parameters are not defined (missing
phy-porting-layer.h), the default values are used
(drivers/marvell/comphy/phy-default-porting-layer.h)
and the following compilation warning is show:
"Using default comphy params - you may need to suit them to your board".

The common COMPHY driver code is extracted in order to be shared with
future COMPHY driver for A3700 SoC platforms

Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Signed-off-by: Igal Liberman <igall@marvell.com>
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
13 files changed:
docs/marvell/porting.txt
drivers/marvell/comphy/comphy-cp110.h
drivers/marvell/comphy/phy-comphy-common.h [new file with mode: 0644]
drivers/marvell/comphy/phy-comphy-cp110.c
drivers/marvell/comphy/phy-comphy-cp110.h
drivers/marvell/comphy/phy-default-porting-layer.h [new file with mode: 0644]
plat/marvell/a8k/a70x0/platform.mk
plat/marvell/a8k/a70x0_amc/platform.mk
plat/marvell/a8k/a80x0/board/phy-porting-layer.h [new file with mode: 0644]
plat/marvell/a8k/a80x0/platform.mk
plat/marvell/a8k/a80x0_mcbin/platform.mk
plat/marvell/a8k/common/a8k_common.mk
plat/marvell/a8k/common/include/a8k_plat_def.h